package com.ee.chat.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ee.chat.common.entity.UserDynamicBuyLog;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author Shane
 * @since 2019-08-23
 */
public interface UserDynamicBuyLogMapper extends BaseMapper<UserDynamicBuyLog> {
    /**
     * 获取用户购买动态的记录
     * @Author Shane
     * @Date 2019/8/24 22:03
     * @param userId    用户id
     * @param dynamicId 动态id
     * @return
     */
    UserDynamicBuyLog getUserBuyLog(@Param("userId") Integer userId, @Param("dynamicId") Integer dynamicId);
}